package com.example.tests;

import static org.junit.Assert.assertEquals;

import java.util.Collections;
import java.util.List;

import org.testng.annotations.Test;

import com.example.fw.Folders;
//import static org.junit.Assert.assertThat;


public class TestFolderDelete extends TestBase {

	@Test
	public void testFolderDeletion(){
		
		Folders oldFolders = app.getFolderHelper().getFolders();
		System.out.println("OLDFOLDERS-------------------------------" + oldFolders);
		
		String folderNameToDelete=app.getFolderHelper().readNameOfFolder();
		System.out.println("FOLDERTODELETE-------------------------------" + folderNameToDelete);
		app.getFolderHelper().removeFolder(folderNameToDelete);
		Folders newFolders = app.getFolderHelper().getFolders();
		System.out.println("NEWFOLDERS-------------------------------" + newFolders);
		
		newFolders.addFolderForComparing(folderNameToDelete);
		oldFolders.sortForComparing();
		
		assertEquals(oldFolders, newFolders);
	}
}
